   //
//  WYProductCell.m
//  Boss
//
//  Created by admin on 2018/7/5.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "WYProductCell.h"

@interface WYProductCell()

@property (strong, nonatomic) IBOutlet UILabel *productTitle;

@property (strong, nonatomic) IBOutlet UILabel *productDest;


@end
@implementation WYProductCell
-(void)setService:(WYProductService *)service
{
    _service = service;
    
    [self.productImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@!default",service.picUrl]] placeholderImage:[UIImage imageNamed:@""]];
    self.productDest.text = service.content;
    self.productTitle.text = service.title;
    
    
}

-(void)setModel:(CJFirmProductModel *)model
{
    _model = model;
    
    [self.productImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@!default",model.productCover]] placeholderImage:[UIImage imageNamed:@""]];
    self.productDest.text = model.productName;
    self.productTitle.text = model.productDetails;
    
    
    
    
    
}







- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization cod
    self.productImageView.clipsToBounds = YES;
    self.height.constant = 115*DUP;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
